#include <iostream>
#include <cstring>
using namespace std;

/*
    1.什么时候不可以偷懒，一定要显式（赤裸裸地）地把this写出来
    很特殊的例子：我故意把形参age跟猫的私有成员age同名
*/

class Cat
{
public:
    int age;
    void eat()
    {
        cout << "cat eat" << endl;
    }
    void setAge(int age)
    {
        this->age = age;
    }

    void show()
    {
        cout << "age: " << age << endl;
    }
};

int main()
{
    Cat cat;
    memset(&cat, 0, sizeof(cat));
    cat.setAge(10);
    cat.show();
    return 0;
}